using system
var BMI=new number
function calBMI(height,weight)
    var BMI=weight/ (height^2)
    return BMI
end
var weight=new array
var height=new array
out.println("input the numeber of people")
var persons=new number
persons=in.input()
for i=0,i<persons,i++
    out.println("input the " +(i+1)+" person's height")
    height[i]=in.input()
    out.println("input the " +(i+1)+" person's weight")
    weight[i]=in.input()
end
for i=0,i<persons,i++
    var result=calBMI(height[i],weight[i])
    out.println(result)
    if result>=24 && result<=28
        out.println((i+1)+" BMI= " +result+ "overweight")
    end
    if result>28
        out.println("fat" + result)
    end
    if result<18
        out.println((i+1)+"BMI=" +result+ "thin")
    end
end

